package com.example.demo.pojo.vo;

import com.example.demo.enumeration.Campus;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class UserDetailVO {
    private Long id;

    private String name;

    private Campus campus;

    private String picture;

    private Integer credit;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    public UserDetailVO() {
    }

    public UserDetailVO(Long id, String name, Campus campus, String picture, Integer credit, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.name = name;
        this.campus = campus;
        this.picture = picture;
        this.credit = credit;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
